import { productTypesEnum } from '@/enums/product'

export default {
  computed:{
    proxyProductType() {
      const { modifyData: { ProductType } } = this
      return ProductType
    },
    linkFrom() {  //  nameTxt
      const t =  productTypesEnum[this.proxyProductType]
      return t? t : '---'
    },
    linkTo() {  //  nameTxt
      const t =  productTypesEnum.getProp(this.proxyProductType, 'config2MappingName')
      return t? t : '---'
    },
    linkFromType() {
      return productTypesEnum[this.proxyProductType]
    }
  }
}
